<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>
        病案管理
    </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../css/x-admin.css" media="all">
    <link rel="stylesheet" href="../css/pag.css" media="all">
</head>
<body>
<div class="x-nav"> <span class="layui-breadcrumb"> <a><cite>首页</cite></a> <a><cite>档案管理</cite></a> </span> <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"  href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon" style="line-height:30px">ဂ</i></a> </div>
<div class="x-body">
    <form class="layui-form x-center" action="" style="width:85%" id="brForm" method="post">
        <input type="hidden" name="currentPageNo" id="currentPageNo" value="1"/>
        <div class="layui-form-pane">
            <div class="layui-form-item">
                <label class="layui-form-label">住院号</label>
                <div class="layui-input-inline" style="width:100px">
                    <input type="text" name="qryUserId" value="<c:if test='${qryUserId != 0}'>${qryUserId}</c:if>" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">患者姓名</label>
                <div class="layui-input-inline" style="width:100px">
                    <input type="text" name="qryUserName" value="${qryUserName}" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">主治医生</label>
                <div class="layui-input-inline" style="width:100px">
                    <input type="text" name="qryDoc" value="${qryDoc}" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-input-inline" style="width:80px;height: 80px">
                    <button class="layui-btn" lay-submit="" lay-filter="*">搜索</button>
                </div>
            </div>
        </div>
    </form>

    <div class="tools">
        <span class="x-right" style="line-height:25px" align="left">第${currentPageNo}页/共${totalPageCount}页</span>
        <span class="x-right" style="line-height:25px">共有数据：${totalCount}条</span></xblock>
    </div>
    <table class="tablelist">
        <thead>
        <tr>
            <th> 住院编号 </th>
            <th> 患者姓名 </th>
            <th> 主治医师 </th>
            <th> 入院时间 </th>
            <th> 出院时间 </th>
            <th> 操作 </th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${zybaList}" var="zyba" varStatus="row">
            <tr>
                <td>${zyba.userId}</td>
                <td>${zyba.userName}</td>
                <td>${zyba.zdName}</td>
                <td><fmt:formatDate value="${zyba.checkInTime}"/> </td>
                <td><fmt:formatDate value="${zyba.checkOutTime}"/> </td>
                <td><a title="查看" href="/seeBingAn/zybaxq?userId=${zyba.userId}"><button class="sp">查看</button></a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="page"  v-show="show">
        <input type="hidden" name="totalPageCount" id="totalPageCount" value="${totalPageCount}"/>
        <div class="pagelist">
            <span class="jump"><a href="javascript:page_nav(document.forms[0],1);"> 首页</a></span>
            <span class="jump"><a href="javascript:page_nav(document.forms[0],${currentPageNo - 1});">上一页</a></span>
            <span class="jump"><a href="javascript:page_nav(document.forms[0],${currentPageNo + 1});">下一页</a></span>
            <span class="jump"><a href="javascript:page_nav(document.forms[0],${totalPageCount});">尾页</a></span>
            <span class="jumppoint">跳转到：</span>
            <span class="jumpinp"><input type="text" name="inputPage" id="inputPage"/></span>
            <button type="button" class="jump gobtn" onClick='jump_to(document.forms[0],document.getElementById("inputPage").value)'>GO</button>
        </div>
    </div>
</div>
<script src="../lib/layui/layui.js" charset="utf-8"></script>
<script src="../js/x-layui.js" charset="utf-8"></script>
<script src="../js/zygl/rollpage.js" charset="utf-8"></script>
<script src="../js/jquery2.js" charset="utf-8"></script>
<script src="../js/js.js" charset="utf-8"></script>
<script src="../js/calendar/WdatePicker.js"></script>
<script type="text/javascript">
    $('.tablelist tbody tr:odd').addClass('odd');
</script>
</body>
</html>